package com.whu.assignment8.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whu.assignment8.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Update("UPDATE User u SET u.password = :password WHERE u.name = :userName")
    public void changePassword(String userName,String password);
}
